package beans;

import java.util.*;

import entities.*;

import javax.ejb.Local;

@Local
public interface SearchManager {

	public Object directSearch(String searchTerm, String searchType, Integer userID);
	
	public ArrayList<Item> getLoanedItems(int borrowerId, int max);
	//get items from a database 
	public ArrayList<Item> getItems(int userId, String copyStatus, String type, int maxNum);
	
	public ArrayList<Item> getItems(int userId);
	
	//gets all distinct items from a database regardless of userId or type (for admin use)
	public ArrayList<Item> getAllItems();

	//gets an item from the master table (for admin use)
	public Item getItem(int masterId);

}
